package ru.algorithm.clusterization.cftree3;

/**
 * Yuri Zemlyanskiy <urikz@yandex-team.ru>
 * Date: 07.05.2011
 */
public class CFLeaf extends CFEntry {
    public CFLeaf(double[] x) {
        super(x);
    }

    public CFLeaf(double[] x, int index) {
        super(x, index);
    }

    @Override
    protected CFNode getChild() {
        throw new UnsupportedOperationException();
    }

    @Override
    protected void addToChild(CFEntry e) {
        throw new UnsupportedOperationException();
    }

    @Override
    protected void setChild(CFNode n) {
        throw new UnsupportedOperationException();
    }

    @Override
    protected void update(CFEntry e) {
        throw new UnsupportedOperationException();
    }

    @Override
    protected boolean hasChild() {
        return false;
    }

    @Override
    public boolean isPreLeaf() {
        throw new UnsupportedOperationException();
    }

    public double[] getPoint() {
        return sumX;
    }
}
